<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
     <title>
        	添加管理账号
	</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/font-awesome.min.css"  />
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/bootstrap.min.css"  />
</head>
<script src="${pageContext.request.contextPath}/js/jquery-1.6.3.js"></script>
 <script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
  <script src="${pageContext.request.contextPath}/css/unslider.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#submit").click(function(){
	var pwd=$("#password").val();
	if(pwd!=${admin.password}){
		alert("密码错误!");
		return false;
	}
	$("#div1").css("display","none");
	$("#div2").css("display","block");
	});
	$("#submit2").click(function(){
		var newPwd=$("#newPwd").val();
		var newPwd2=$("#newPwd2").val();
		if(newPwd!=newPwd2){
			alert("两次输入的密码不一致");
			return false;
		}
	});
	
});
</script>
<body style="width: 100%;height: 100%;">
    	<div id="div1" style="height:50%;width:100%;text-align:center;margin-top: 10%;">
    		<span>请输入密码后进行操作</span>
    		<input type="password" id="password">
    		<input type="hidden" value="1" name="id">
   			<button class="btn btn-default" id="submit">确定</button> 
    	</div>
    	<div id="div2" style="display:none">
    		<form action="${pageContext.request.contextPath}/AdminUserController/update.action" method="post" id="myform">
					<label style="margin-left: 48%;margin-top:20px;color: #080808;font-size: 16px">登录账号</label>
					<span style="color: red;margin-left:5px;font-size: 12px" id="unSpan"></span>
					<div class="input-group" style="width: 40%;margin: auto;" >  
					<div class="input-group-addon"><span class="fa fa-id-card-o"></span></div>
					<input type="text" id="oldPwd" placeholder="账号*" class="form-control" name="username">	
					</div>
					<label style="margin-left: 48%;margin-top:20px;color: #080808;font-size: 16px">登录密码</label>
					<span style="color: red;margin-left:5px;font-size: 12px" id="unSpan"></span>
					<div class="input-group" style="width: 40%;margin: auto;" >  
					<div class="input-group-addon"><span class="fa fa-unlock-alt"></span></div>
					<input type="password" id="newPwd" placeholder="密码*" class="form-control" name="password">	
					</div>
					<label style="margin-left: 48%;margin-top:20px;color: #080808;font-size: 16px">重复密码</label>
					<span style="color: red;margin-left:5px;font-size: 12px" id="unSpan"></span>
					<div class="input-group" style="width: 40%;margin: auto;" >  
					<div class="input-group-addon"><span class="fa fa-unlock-alt"></span></div>
					<input type="password" id="newPwd2" placeholder="重复密码*" class="form-control" >	
					</div>
								<input id="submit2" type="submit" value="确认添加" style="letter-spacing:20px;margin:20px 0 0 44%; ;padding-left:24px;" class="btn btn-info">
								
					</form>
    	</div>
 </body>
   <style>
     
   </style>
</html>